package cn.okcode.api.framework.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 参数必填注解
 *
 * @author pyk13
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.PARAMETER, ElementType.TYPE, ElementType.FIELD})
public @interface CPRequired {
    boolean value() default true;

    /**
     * 校验提示
     *
     * @return
     */
    String blankText() default "";
}
